<?php
namespace app\payqr\model;
use app\BaseModel;
use think\facade\Db;
use think\facade\Env;

class CardauthConfig extends BaseModel
{
    protected $name = 'longbing_cardauth2_config';

    // 自动写入时间戳
    protected $autoWriteTimestamp = true;
    public function getinfo($where){
        return $this->where($where)->find();
    }
    public function is_table(){
        $prefix = config('database.connections.mysql.prefix');
        $table  = $prefix.$this->name;
       $res     = Db::query('SHOW TABLES LIKE '."'".$table."'");
       return $res;
    }
}